<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>8 小黑学习网</title>
</head>
<body>
  <div id="app">
    <h3>小黑学习网</h3>
    姓名：<input type="text" v-model="username"> <br>
    是否单身：<input type="checkbox" v-model="isSingle"> <br>
    性别: <input v-model="sex"  type="radio" name="sex" id="boy" value="1">男 
    <input v-model="sex" type="radio" name="sex" id="girl" value="2">女 <br>
    所在城市：<select v-model="cityId">
      <option value="1">北京</option>
      <option value="2">上海</option>
      <option value="3">广东</option>
    </select> <br>
    自我描述: <br>
    <textarea name="textarea" id="2" cols="30" rows="10" v-model="desc"></textarea> <br>
    <button>立即注册</button>
  </div>

<script src="../js/vue.js"></script>
<script>
 var app = new Vue({
        el: "#app",
        data: {
          username: '',
          isSingle: true,
          sex: '2',
          cityId: '1',
          desc:""
        },
        methods:{
          
        }
      });

</script>

</body>
</html>